<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/22
 * Time: 11:23
 */

namespace app\index\validate;


class ImageValidate extends BaseValidate
{
    protected $rule = [
//        'alias' => 'require|unique:sy_image',
//        'url' => 'require|unique:sy_image',
        'alias' => 'require',
        'url' => 'require',
        'from' => 'require|isPositiveInt',
        'status' => 'require|zeroOrOne',
        'primary_key' => 'isPositiveInt'
    ];
}